package com.atkxp.dao;

import com.atkxp.domain.Book;

import java.util.List;

/**
 * @author user
 * @declaration
 * @create 2022/9/25-10:19
 */
public interface BookDao {
    public int addBook(Book book);

    public int deleteBookById(int id);

    public int updateBook(Book book);

    public Book queryBookById(int id);

    public List<Book> queryBooks();

    public Long queryBookForPageTotalCount();

    public List<Book> queryForPageItems(int begin, int pageSize);

    Long queryBookForPageTotalCountByPrice(int min, int max);

    List<Book> queryForPageItemsByPrice(int begin, int pageSize, int min, int max);
}
